<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="jquery.min.js"></script>
</head>
<style>
	#re{
		width: 500px;
		height: auto;
	}
</style>
<body>
<input type="button" id="diy" value="执行">
<br>

<img src="1%20(5).jpg" alt=""  id="re" style="position: absolute">

<script>
	$("#diy").click(function () {
		$("#re").animate({
			left:"900",top:"-500"
		},5000,
		function () {
			alert("呵呵")
		})
	})

</script>
</body>
</html>